home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15882 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.2 KB  |  46 lines

  1. Path: gaia.ns.utk.edu!mbk
  2. From: mbk@caffeine.engr.utk.edu (Matt Kennel)
  3. Newsgroups: comp.object,comp.lang.eiffel,comp.lang.c++,comp.lang.beta,comp.lang.java,comp.lang.sather
  4. Subject: Re: What Should An Exception Handling Do? -- Clarification of rules
  5. Followup-To: comp.object,comp.lang.eiffel,comp.lang.c++,comp.lang.beta,comp.lang.java,comp.lang.sather
  6. Date: 8 Apr 1996 17:49:51 GMT
  7. Organization: University of Tennessee, Knoxville and Oak Ridge National Laboratory
  8. Message-ID: <4kbjjv$1i8@gaia.ns.utk.edu>
  9. References: <4irn11$7ln@mimas.brunel.ac.uk> <4jdv0p$lnr@dscomsa.desy.de> <wpp.828370477@marie.physik.TU-Berlin.DE> <3161961F.1FEE8722@ids2.idsonline.com> <4jvifo$h9c@hoho.quake.net>
  10. Reply-To: kennel@msr.epm.ornl.gov
  11. NNTP-Posting-Host: caffeine.engr.utk.edu
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Bill Foote (billf@jovial.com) wrote:
  15.  
  16. : Without method references, there's always the command pattern.
  17.  
  18. : Making small, single-purpose classes like this really isn't that painful
  19. : in a language like Java (or Smalltalk, Eiffel, ...).  I find that what
  20. : makes it painful in C++ is all the #include/Makefile nonsense I have to
  21. : go through, but this isn't really the fault of the language:  it
  22. : could be fixed with the proper tools (i.e. a good IDE).
  23.  
  24. Surely it *is* the fault of the language that it needs to be "fixed"
  25. by external tools.  The fault being an adherence to an obsolete notion
  26. that only things "before" in character order in some processed
  27. file are knowable to the compiler and a linking model appropriate for
  28. Fortran 66. 
  29.  
  30. A '#define' or typedef in any included #include file can change the 
  31. interpretation of random 'later' definitions or implementations.  Or,
  32. suppose the last two characters of the #include file were "/*" ??
  33.  
  34. Those external tools would have to 'automagically' generate properly 
  35. restricted #include files which only do sane things.
  36.  
  37. You'd really be writing in a new langauge which has Ada or Eiffel style
  38. sane class definitions and then have all the actual .h files and #includes
  39. generated by your 'external' tool. 
  40.  
  41. : --
  42. : Bill Foote                       |  L'homme est nΘ pour vivre dans les
  43. : billf@jovial.com                 |  convulsions de l'inquiΘtude ou dans la
  44. : http://www.jovial.com/~billf/    |  lΘthargie de l'ennui       -- Voltaire
  45.  
  46.